package com.zhang.publicproject.common.base;

import android.view.View;


public abstract class BaseHolder<HolderBeanType> {
    public View mHolderView;
    private HolderBeanType mBean;


    public BaseHolder(){
        mHolderView=initHolderView();

        mHolderView.setTag(this);
    }

    public abstract View initHolderView();

    public void setDataAndRefreshHolderView(HolderBeanType bean){
        mBean =bean;
        refreshHolderView(bean);
    }

    public abstract void refreshHolderView(HolderBeanType bean);
}
